<!-- 商品管理 -->
<?php
include 'app-begin.php';
?>
<main class="body-data">
    <div class="panel">
        <div class="panel_cancel">取消</div>
        <form action="../Model/IndentCheck.php" method="post">
            <div class="all_form">
                <input type="text" name="order_no" required placeholder="请输入订单单号此项为必填项！">
                <input type="text" name="order_status" required placeholder="请输入点单状态次项为必填项！">
                <input type="text" name="order_amount_total" required placeholder="请输入订单总金额此项为必填项！">
                <input type="text" name="logistics_fee" placeholder="请输入运费金额">
                <input type="text" name="pay_channel" placeholder="请输入支付渠道">
                <input type="text" name="payment_time" placeholder="请输入付款时间">
                <input type="text" name="delivery_time" placeholder="请输入货时间">
            </div>
            <div class="all_button">
                <button class="panel_reset" type="reset">重置</button>
                <button class="panel_submit" type="submit">提交</button>
            </div>
        </form>
    </div>
    <div id="window_table">
        <div class="add_data_button">添加</div>
        <table border="1">
            <caption>订单管理页面</caption>
            <thead>
                <tr>
                    <td>序号</td>
                    <td>订单编号</td>
                    <td>状态</td>
                    <td>总金额</td>
                    <td>运费</td>
                    <td>支付方式</td>
                    <td>下单时间</td>
                    <td>发货时间</td>
                    <td colspan="2">操作</td>
                </tr>
            </thead>
            <tbody>
                <?php
                include __DIR__ . '/../Controller/indent.php';
                foreach ($allData as $k => $v) {
                    echo "<tr>";
                    foreach ($v as $value) {
                        echo "<td>";
                        echo $value;
                        echo "</td>";
                    }
                    echo "<td><a href='javascript:modifyIndent({$v["order_id"]})'>修改</a></td>";
                    echo "<td><a href='javascript:delOrder({$v["order_id"]})'>删除</a></td>";
                    echo "</tr>";
                }
                ?>
            </tbody>
        </table>
    </div>
</main>

<script src="../assets/js/indent.js"></script>

<?php
include 'app-end.php';

?>